package com.jack.design_patterns.creational.single;

import java.util.Map;
import java.util.Properties;

public class MainTest {

    public static void main(String[] args) {
        Person p1 = Person.getInstance();
        Person p2 = Person.getInstance();
        System.out.println(p1 == p2);

        // 获取系统信息
        Properties properties = System.getProperties();
        System.out.println("properties:" + properties);
        // 获取系统环境信息
        Map<String, String> envInfo = System.getenv();
        System.out.println("envInfo:" + envInfo);
    }
}
